﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.Excel
{
    public class MgExcelException : Exception
    {
        public int RowIndex { get; }

        public int ColumnIndex { get; }

        public MgExcelException()
        {
        }

        public MgExcelException(string message) : base(message)
        {
        }

        public MgExcelException(string message, Exception innerException) : base(message, innerException)
        {
        }

        public MgExcelException(int rowIndex,int columnIndex,string message,Exception innerException=null) :base(message,innerException)
        {
            RowIndex = rowIndex;
            ColumnIndex = columnIndex;
        }
    }
}
